package cn.bfay.lion.rest.error;

import cn.bfay.web.exception.enums.ErrorType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * rest业务错误-101开头(rest码开头是1).
 *
 * @author wangjiannan
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum RestBusinessError implements ErrorType {
    SYSTEM_ERROR("100001", "系统错误"),
    NOT_WECHAT_SERVER_ERROR("100002", "非微信服务请求"),
    WECHAT_SERVER_IP_GET_ERROR("100003", "微信服务ip获取失败"),

    LOGIN_NEED_LOGIN("101001", "请登录"),
    LOGIN_ERROR_LOGIN("101002", "账号密码错误"),
    LOGIN_ERROR_CAPTCHA("101003", "验证码错误"),
    REGIST_EXIST_USERNAME("101004", "用户名已存在"),
    REGIST_PASSWORD_UNMATCH("101005", "两次密码不一致"),
    FOCUSE_LIMIT("101006", "关注数不能大于%d"),
    HAVE_FOCUSED_ON("101007", "已关注，请勿重复操作"),
    NEED_FOCUSED_ON("101008", "请关注后再操作"),
    NOT_ADMIN("101009", "请关注后再操作");

    private String code;
    private String message;
}